﻿using Cms.Core.Infrastructure.Ui;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace Cms.Core.Infrastructure.Ui
{
    public class PageResult<T>: ReturnResult<T>
    {

        
        public PageResult() : base(new List<T>(), 0, "操作成功", true)
        {

        }
        public PageResult(List<T> data, int total, string message = "操作成功", bool success = true) : base(data, total, message, success)
        {

        }




        public  PageData<T> ToPageData()
        {
            return new PageData<T>(Data, Total, Message,Success);
        }



      
    }
}
